<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><!-- InstanceBegin template="/Templates/Function Info.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>WinXAddCheckButton</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<style type="text/css">
<!--
.style3 {font-size: medium}
-->
</style>

<link href="../../WinXStyles.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
	font-size: x-large;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style2 {
	font-size: large;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
-->
</style>
</head>

<body>
<h1 class="style1"><img src="../../WinX48.png" width="48" height="48" align="absmiddle"> <!-- InstanceBeginEditable name="title" -->WinXAddCheckButton<!-- InstanceEndEditable --></h1>
<hr>

<!-- InstanceBeginEditable name="Prototype" -->
<p>hCheck = WinXAddCheckButton (parent, STRING title, isFirst, pushlike, id)</p>
<!-- InstanceEndEditable --><!-- InstanceBeginEditable name="Description" -->
<p>Creates a new check button and adds it to the window </p>
<!-- InstanceEndEditable -->
<table width="80%" border="1" cellpadding="0" cellspacing="0">
  <tr bgcolor="#CCCCCC">
    <th width="24%"><span class="style3">Parameter</span></th>
    <th width="76%"><span class="style3">Description</span></th>
  </tr>
  <!-- InstanceBeginRepeat name="Parameter Table" --><!-- InstanceBeginRepeatEntry -->
  <tr bgcolor="#E8E8E8">
    <td><!-- InstanceBeginEditable name="Parameter" -->parent<!-- InstanceEndEditable --></td>
    <td><!-- InstanceBeginEditable name="Description" -->The handle to the window to add this check button to <!-- InstanceEndEditable --></td>
  </tr>
  <!-- InstanceEndRepeatEntry --><!-- InstanceBeginRepeatEntry -->
  <tr bgcolor="#E8E8E8">
    <td><!-- InstanceBeginEditable name="Parameter" -->STRING title<!-- InstanceEndEditable --></td>
    <td><!-- InstanceBeginEditable name="Description" -->The text that appears to the right of the check box <!-- InstanceEndEditable --></td>
  </tr>
  <!-- InstanceEndRepeatEntry --><!-- InstanceBeginRepeatEntry -->
  <tr bgcolor="#E8E8E8">
    <td><!-- InstanceBeginEditable name="Parameter" -->isFirst<!-- InstanceEndEditable --></td>
    <td><!-- InstanceBeginEditable name="Description" -->$$TRUE if this is the first check button in a set of check buttons <!-- InstanceEndEditable --></td>
  </tr>
  <!-- InstanceEndRepeatEntry --><!-- InstanceBeginRepeatEntry -->
  <tr bgcolor="#E8E8E8">
    <td><!-- InstanceBeginEditable name="Parameter" -->pushlike<!-- InstanceEndEditable --></td>
    <td><!-- InstanceBeginEditable name="Description" -->$$TRUE if this control is to be rendered as a pushbutton <!-- InstanceEndEditable --></td>
  </tr>
  <!-- InstanceEndRepeatEntry --><!-- InstanceBeginRepeatEntry -->
  <tr bgcolor="#E8E8E8">
    <td><!-- InstanceBeginEditable name="Parameter" -->id<!-- InstanceEndEditable --></td>
    <td><!-- InstanceBeginEditable name="Description" -->The unique id constant for this control <!-- InstanceEndEditable --></td>
  </tr>
  <!-- InstanceEndRepeatEntry --><!-- InstanceEndRepeat -->
</table>
<h3>Returns</h3>
<!-- InstanceBeginEditable name="Return Info" -->
<p>The handle to the check button or 0 on fail </p>
<!-- InstanceEndEditable -->
<h3>Remarks</h3>
<!-- InstanceBeginEditable name="Remarks" -->
<p>The isFirst parameter is used to group check boxes so that the user can navigate between check boxes within a group using the arrow keys when the <a href="../General.htm/WinXEnableDialogInterface.htm">dialog interface</a> is enabled. To group your check boxes, set the isFirst parameter to $$TRUE for the first check box and $$FALSE for all subsequent check boxes.</p>
<p>If pushlike is $$TRUE, this function will create a pushbutton which can be toggled from pressed to unpressed, corresponding to the checked and unchecked states of a check box. </p>
<!-- InstanceEndEditable -->
<h3>Examples</h3>
<table width="80%"  border="0">
  <tr>
    <td bgcolor="#C6C6FF"><!-- InstanceBeginEditable name="Example Code" -->
      <p class="codeStyle">'define constants<br>
        $$ID_CHECK1 = 100 <br>
      $$ID_CHECK2 = 101 <br>
      $$ID_CHECK3
= 102      </p>
      <p class="codeStyle">        'create a set of check boxes <br>
        hCheck1 = WinXAddCheckButton (#hMain, &quot;Item 1&quot;, $$TRUE, $$FALSE, $$ID_CHECK1)<br>
  hCheck2 = WinXAddCheckButton (#hMain, &quot;Item 2&quot;, $$FALSE, $$FALSE, $$ID_CHECK2)<br>
  hCheck3 = WinXAddCheckButton (#hMain, &quot;Item 3&quot;, $$FALSE, $$FALSE, $$ID_CHECK3)</p>
    <!-- InstanceEndEditable --></td>
  </tr>
</table>

<h2 class="style2">Related Links</h2>
<!-- InstanceBeginEditable name="Related Links" -->
<p><a href="WinXButton_SetCheck.htm">WinXButton_SetCheck</a><br>
  <a href="WinXButton_GetCheck.htm">WinXButton_GetCheck</a><br>
  <a href="../General.htm/WinXEnableDialogInterface.htm">WinXEnableDialogInterface</a></p>
<!-- InstanceEndEditable -->
</body>
<!-- InstanceEnd --></html>
